package com.lzw.breezeNovel.webApp.mapper.comic;

import com.lzw.breezeNovel.model.entity.pojo.comic.ComicHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.mapper.comic
 * @date 2025/3/18
 * @description
 */
@Mapper
@SuppressWarnings("all")
public interface ComicHistoryMapper {

    /**
     * 根据用户id和漫画id查询漫画历史
     * @param userId
     * @param comicId
     * @return
     */
    ComicHistory selectByUserIdAndComicId(@Param("userId") Long userId, @Param("comicId") Long comicId);

    /**
     * 插入漫画历史
     * @param comicHistory
     */
    void insert(ComicHistory comicHistory);

    /**
     * 更新漫画历史
     * @param comicHistory
     */
    void update( ComicHistory comicHistory);
}
